/**
 * 由 CoCo 源代码计划解包器解包
 *
 * 模块 ID：1249
 */

var r = require("../1541/309")
var o = require("../1684/257")
var i = require("../1253/934")
var a = require("../1253/824")
var s = require("../1565/1217/1064")
var c = require("../1253/632")
var /* [auto-meaningful-name] */require$$_1724_258$aTypedArrayConstructor = require("../1724/258").aTypedArrayConstructor
module.exports = function (e) {
  var t
  var n
  var u
  var d
  var p
  var /* [auto-meaningful-name] */PIHV$next
  var h = r(e)
  var /* [auto-meaningful-name] */arguments$length = arguments.length
  var g = arguments$length > 1 ? arguments[1] : undefined
  var _ = undefined !== g
  var v = a(h)
  if (undefined != v && !s(v)) {
    for (PIHV$next = (p = i(h, v)).next, h = []; !(d = PIHV$next.call(p)).done;) {
      h.push(d.value)
    }
  }
  for (_ && arguments$length > 2 && (g = c(g, arguments[2], 2)), n = o(h.length), u = new (require$$_1724_258$aTypedArrayConstructor(this))(n), t = 0; n > t; t++) {
    u[t] = _ ? g(h[t], t) : h[t]
  }
  return u
}
